<template>
  <div id="navigation-bar-back">
    <div id="navigation-bar">
      <div class="temp">
        <navigation-item class="navigation-item" path="/home"><span>首页</span></navigation-item>
        <div style="height: 2px" :class="{'active': this.$route.path==='/home'}"></div>
      </div>
      <div class="temp">
        <navigation-item class="navigation-item" path="/trend"><span>疫情趋势</span></navigation-item>
        <div style="height: 2px" :class="{'active': this.$route.path==='/trend'}"></div>
      </div>
      <div class="temp">
        <navigation-item class="navigation-item" path="/3d"><span>Covid 3d</span></navigation-item>
        <div style="height: 2px" :class="{'active': this.$route.path==='/3d'}"></div>
      </div>
      <div class="temp">
        <navigation-item class="navigation-item" path="/graph1"><span>知识图谱1</span></navigation-item>
        <div style="height: 2px" :class="{'active': this.$route.path==='/graph1'}"></div>
      </div>
      <div class="temp">
        <navigation-item class="navigation-item" path="/graph2"><span>知识图谱2</span></navigation-item>
        <div style="height: 2px" :class="{'active': this.$route.path==='/graph2'}"></div>
      </div>
      <div class="temp">
        <navigation-item class="navigation-item" path="/robot1"><span>疫情问答机器人1</span></navigation-item>
        <div style="height: 2px" :class="{'active': this.$route.path==='/robot1'}"></div>
      </div>
      <div class="temp">
        <navigation-item class="navigation-item" path="/robot2"><span>疫情问答机器人2</span></navigation-item>
        <div style="height: 2px" :class="{'active': this.$route.path==='/robot2'}"></div>
      </div>
      <div class="temp">
        <navigation-item class="navigation-item" path="/knowledge1"><span>知识可视化1</span></navigation-item>
        <div style="height: 2px" :class="{'active': this.$route.path==='/knowledge1'}"></div>
      </div>
      <div class="temp">
        <navigation-item class="navigation-item" path="/knowledge2"><span>知识可视化2</span></navigation-item>
        <div style="height: 2px" :class="{'active': this.$route.path==='/knowledge2'}"></div>
      </div>
      <div class="temp">
        <navigation-item class="navigation-item" path="/visualize1"><span>数据可视化1</span></navigation-item>
        <div style="height: 2px" :class="{'active': this.$route.path==='/visualize1'}"></div>
      </div>
      <div class="temp">
        <navigation-item class="navigation-item" path="/visualize2"><span>数据可视2</span></navigation-item>
        <div style="height: 2px" :class="{'active': this.$route.path==='/visualize2'}"></div>
      </div>
      <div class="temp">
        <navigation-item class="navigation-item" path="/predict1"><span>数据预测1</span></navigation-item>
        <div style="height: 2px" :class="{'active': this.$route.path==='/predict1'}"></div>
      </div>
      <div class="temp">
        <navigation-item class="navigation-item" path="/predict2"><span>数据预测2</span></navigation-item>
        <div style="height: 2px" :class="{'active': this.$route.path==='/predict2'}"></div>
      </div>
      <div class="temp">
        <navigation-item class="navigation-item" path="/issue"><span>ISSUE</span></navigation-item>
        <div style="height: 2px" :class="{'active': this.$route.path==='/issue'}"></div>
      </div>
    </div>
  </div>
</template>

<script>
  import NavigationItem from "../content/NavigationItem";

  export default {
    name: "NavigationBar",
    components: {
      NavigationItem,
    }
  }
</script>

<style scoped>
  #navigation-bar-back {
    width: 100%;
    min-width: 1500px;
    height: 60px;
    background: rgba(0, 70, 140, 1);
  }

  #navigation-bar {
    width: 1200px;
    height: 60px;
    font-size: 14px;
    color: rgba(254, 255, 255, 1);
    line-height: 60px;
    margin: 0 auto;
    display: flex;
  }

  .navigation-item {
    margin: 0 auto;
    height: 58px;
    line-height: 60px;
  }

  .active {
    background-color: #ED6D00;
  }

  .temp {
    margin: 0 auto;
  }
</style>
